//
//  UMenuBackgroundColor.cpp
//  UltraStarDeluxeIOS
//
//  Created by 李 杰军 on 12-7-15.
//  Copyright (c) 2012年 DoReiMi. All rights reserved.
//

#include <iostream>

#include "sdl.h"
#include "UMenuBackgroundColor.h"
#include "UGraphic.h"
#include "SDL_opengles.h"

TMenuBackgroundColor::TMenuBackgroundColor(TThemeBackground ThemedSettings)
: TMenuBackground(ThemedSettings)
{
    Color = ThemedSettings.Color;
}

TMenuBackgroundColor::~TMenuBackgroundColor()
{
}

void TMenuBackgroundColor::Draw()
{
    if (ScreenAct == 1)
    {
        glClearColor(Color.R, Color.G, Color.B, 0);
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    }
}
